import request from '@/utils/request'

// 查询车位档案列表
export function listParking(query) {
  return request({
    url: '/asset/parking/list',
    method: 'get',
    params: query
  })
}

// 查询车位档案详细
export function getParking(parkingId) {
  return request({
    url: '/asset/parking/' + parkingId,
    method: 'get'
  })
}

// 新增车位档案
export function addParking(data) {
  return request({
    url: '/asset/parking',
    method: 'post',
    data: data
  })
}

// 修改车位档案
export function updateParking(data) {
  return request({
    url: '/asset/parking',
    method: 'put',
    data: data
  })
}

// 删除车位档案
export function delParking(parkingId) {
  return request({
    url: '/asset/parking/' + parkingId,
    method: 'delete'
  })
}
